{% extends "base_site.html" %}
{% load i18n %}
{% block title %}Characters Index{% endblock %}
{% block breadcrumbs %}<div class="breadcrumbs"><a href="/">{% trans "Home" %}</a> &rsaquo; Characters</div>{% endblock %}
{% block content %}
<h1>{{ list_header }}</h1>
<table>
<tr><th>Character Name</th>{% if user.is_staff %}<th>Player Name</th>{% endif %}</tr>
{% for character in characters %}
    <tr>
        <td><a href="{% url show-character character.id %}">{{ character.name }}</a></td>
        {% if user.is_staff %}<td><a href="/admin/auth/user/{{ character.player.id }}/">{{ character.player.first_name }} {{ character.player.last_name }}</a></td>{% endif %}
      </tr>
{% endfor %}
</table>
{% endblock %}